make sure a typeserializer exists before using it
change getInstance() to init() to clarify what the method actually does
passing all tests