Number 3 in your example wouldn't apply at all, as you wouldn't use "were" with "he." (That's mixing a singular subject with a plural verb.)
The other examples would probably rely not only on context, but also inflection in order to convey the proper meaning. Without hearing the tone of voice or seeing the body language of the speaker, there's not much difference between If he is gay If he was gay.
- For Teachers