Fix print_flat_hash for objects