I had this strange bug - With Curie as my companion, I was in the top of the Mass Fusion Building to push the button to destroy the Institute, Railroad being my faction of choice. I was also under the effect of Berry Mentats (highlights living targets with a pink-ish glow). After the ending cutscene and the the dialogue, I dismissed Curie. She then turned hostile against Railroad Agents. This reminded me of the old bug with the targeting HUD power armor helment (was it ever fixed?)