Implement vector-length, improve primitive calling protocol