Fix scope container when a object is created.

Container is first non portal_factory object.
Merge pull request #2 from IMIO/master

Fix scope container when a object is created.