Do some type checking
Missed a spot
Beginnings of work on GMT_Matrix object.  Not working at all.