move getNativeInt and getConstantInt to NativeTypes