Unit type should serialize to empty array, not nil