fix validation not being initialized and make custom type registration happen in MongoMappingContext