preserve enum ctor order when generating xml