Switch order of type checking during mapper serialization
Switch order of type checking during mapper serialization

Hopefully reduces the number of calls to isinstance

RedHatInsights/insights-core,RedHatInsights/insights-core