jsDump: Output non-enumerable properties of TypeError.

Fixes #558
This another attempt after pull request #559 had to be reverted. Tests
are now more flexible to deal with inconsistencies across browsers.