replaced all type detections by 'is' methods in groundjs.Type