regtest for objectvariantmapper of enum types - and fixes to objectvariantmapper serializaiotn code for enums