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.