Updated each() iterator to accept arrays of scalar data, with variable name specified