Closes #780. Consistency with reshape2's melt.
Merge branch 'Bug-780'