fixes + error checking for melt_; closes #2

- ensure id.vars, measure.vars are passed as integers
- some more error checking
- properly handle order of id.vars, measure.vars