Objects should be registered in order to use the ObjectSerializer and should not fallback on superclass Object