add test case for issue #19
.doByLabels: preserve order of non-factor labels; fixes #19