Change the parameter order of foreach_leading to be consistent

"metadata, data" instead of "data, metadata"

This change corresponds with the as_py_tuple PR in dynd-python