Fix native MIME type function marshalling