Add metamethods for vector class