I'm new here, but saw this topic - I know it's old, but thought I'd add a bit.
This is pretty much the only area in me and my wife's relationship where I feel there's particular differences between our relationship and most typical heterosexual relationships.
I'd say to listen to your SO to learn how to respond - different people are going to want different responses.
For me, when my wife is referred to as "he" or similar, she likes me to immediately step up and correct them, politely at first, forcefully if needed - it's very hard on her to deal with this after having lived a life where people continually refuse to recognize who she is, so she truly seems to appreciate when I'm willing to say something so that she doesn't.
As for the more bigoted stuff, I've confronted the person directly and let them know that I do not appreciate someone trying to hurt my wife. I'd suggest finding a way to leave situations where people are unwilling to accept your boyfriend. If it was me, I'd find another place to live and let the bigoted people in my life know that they can choose between their bigotry and their relationship with me, but cannot have both their prejudice and me in their life (just be warned - many will choose their prejudice over you). But of course my situation is likely different than yours, so you have to decide how you'll handle it.