(PUP-1597) Fix contain functions lookup of class with leading ::

When the contain function creates edges it looked up resources without
removing the leading :: in the name. The catalog never stores these, and
thus an edge was formed between a resource and nil.

This also uncovered that contain didn't work correctly with relative names.
Both of these issues are now fixed.