Fixed tests and mat type typedefs
Fixed equal operator on quat