added some scalar specializations to GIMat and GMat