add isPrimitive and isArray in ClassModel