added better error message handling for ->with() handlers.

This now prints all public properties and getter values of an object parameter,
so you can better compare, what went wrong with thos objects.
added a way to nest objects to a certein level, preventing recursion errors.
added static keyword to cleanup functions
added first test for formatObjects
added missing semicolon
changed faulty method name.

Sorry, using travis as phpunit tool ;)