Added some exceptions to Vec and Mat.
Fixed Vec exception conflict.