#1346: fix macro running after metadata refresh

This fixes #1346.

It can be tested by opening the `demo/rose-config-edit/demo_meta/app/05-validate`,
refreshing the metadata, and then running one of the validator macros. It will not work
in the old code, but will in the new.

@arjclark, please review.