move @:coreType/underlying type check to right place