Implemented method chaining in ContainableBehavior::contain()

Resolves #2079