Actually allow results to be returned from get_object_data

Related to #2425