In theory `WriteObject(object, true)` should be called only if the object is a collection and can be enumerated. I've reverted this change because our tests doesn't work well with the expected behavior (which really happens in PowerShell)