Add node position and value functions returning vectors

This is much more convenient and not inefficient these days because of
return value optimisation.