make built-in functions work for vec?