In Australia you can request a GLLO officer if you feel you are not being treated fairly, to be honest I am not sure how well this works as I have never had to do it because whilst they may not have exactly been impressed with a trans driver they have always been sufficiently respectful and polite.