[UIMA-4743] fix this bug in a way that for backwards compatibility, we still write the older format (with the bug) unless a setting to fix this is done. That setting also controls the "version". In either case, fix the part of this Jira that doesn't change the output format.