Minor enhancements + Node 0.10 basic compat

These are separate, independent commits (I just opened one pull request for review).

In `mocha-test-type.js` a logical error was fixed (wrong, always-undefined JSON entry was read).