Assign a array as function in the correct node

See for instance: Mapping from mesh.coordinates() to u.vector() - #2 by dokken