added melt_.matrix; made melt_ an S3 generic dispatch; changes to prefer <Rinternals.h>