Coerce factor when maxtype is VECSXP, fixes rare segfault.
Merge branch 'melt-multiple' into 1.9.8