jsDump: Output non-enumerable properties of TypeError.

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

Fixes #558
Closes #564