Fix dumping for objects