Exclude Resources and Outputs sections when they're empty.
Add support for Mappings.