add isscalar and isvector to typesystem