CF-177: correct handling of category/link conversion

category and link are JSON arrays that need to be converted to multiple <category> and <link> nodes. See JIRA CF-177 defect for details