If arg is flattened, use arity for index into ind/loc_map
Support flattened vector-valued Dat/Mat args in OpenCL