Check container IDs when making new References
Fixed a bug where container ids were not returned
Added a warning when an unused reference is passed when binding a protocol