object_array_entry: fix memory handling of the name field