Add TypeInformation class and add error check in TypeCreator