Disable autodetection of json serialization via jackson as we are explicit about everything
Rework the way enumerations are serialized to json to match historic behaviour