Added relative tolerance, and better comment for owns_pointers.
Refactored FunctionManifold.