Pretty print empty objects and arrays on one line