BUG: Bug in propogating metadata on resample (GH5862)

closes #5862