print_object improved, and now it accepts mappings