added assertInvariants and changed setting instance to present potential
null pointer
added assertInvariants to prevent returning null instance
modified MaplesyrupType class
modified MaplesyrupTypeManager class