fix bug in printer where nested objects didn't print correctly indented