Okay, but then the very first thing he does is drag Wormtongue outside and almost hacks him in half in front of all his subjects. No trial, no questioning, no protecting the children from the horror.
Maybe giving the victim of abuse who has only just regained his senses a weapon was a poor choice
Is Gandalf actually male though? I didn't dig deep enough into the lore to know that, but I do know that he is far different from your regular human/hobbit/dwarf-person. He does present as male, but that might just be a reflection of the societies he is more-or-less living in (i.e. the old wise man persona just makes sense for practical reasons).
They wore the guise of one for longer than many live. In that time he would have been treated and lived as one with mortals who wouldn't know enough to think otherwise. If this is how he choose to live I see no reason to question it.
Well since everyone was like "how do we get that dawg back in him" and Gandalf was the only one that thought to put a sword in his hand maybe Gandalf is the only one that is male.