fix objc issue with sprite_function type mapping