Proper toString() for wrapped throwables
Recursion detection fixed for memoized functions