fix for JSON conversion not adding repeat nodes for multiple repeat instances to XML, closes #495
rebuilt with fixes for #495