fixes for convert_pit_array_to_native_perl and convert_pit_object_to_native_perl