Minor enhancements + Node 0.10 basic compat

These are 3 separate, independent commits.

In `mocha-test-type.js` a logical error was fixed (wrong, always-undefined JSON entry was read).