engine: consider metadata when adding global unit to agents
Merge pull request #863 from jonboulle/glob

engine: consider metadata when adding global unit to agents