Properly merge commands/inits/loopers/extra sources from mappings.