Ensure compacted output is simplified to a single object.