#1052: add macro config vetting

This closes #1052.

@arjclark, please review.

The change can be tested via running the `badenvswitch` macro on the `demo/rose-config-edit/demo_meta/app/04-transform` app in `rose macro` and `rose edit`, using master and this branch of rose.