Allow overriding getShortName() for discriminator map

This will allow the key for entries in a generated discriminator map to be customised. E.g. to include namespace