Update unittest hacks to only print exception message if present

Some dart core exception don't have message property.
Support typedefs