refactor(type-util): aggregate isType functions

related to CAM-3002