fixed some generics for GMat
fixed some generics for GMat

phlip9/BIDMat,codeaudit/BIDMat,codeaudit/BIDMat,phlip9/BIDMat,phlip9/BIDMat,phlip9/BIDMat,codeaudit/BIDMat,phlip9/BIDMat,codeaudit/BIDMat,codeaudit/BIDMat