Fix inspect for object with empty refs