Added some functions to ease STL usage

managed_by_sp creates a functor that tests if a given pointer is managed
by a pointer wrapper.

contains_element creates a functor that tests if a given given container
contains element.