orderedStringify for empty objects and arrays