Changes to the export conditions

- attributes with to_ids == 0 won't be exported unless it's an XML
export
- Fix to a typo in the IOC export