Fix bug in __detectLambda

- This actually fixed a bug where things would fail if an OBJECT were
  passed and __toString() threw an exception (which would blow up)
- But actually this was also a terrible performance issue since
  __toString() can be incredibly slow (think recursive object graphs)