Revert global leak check to have passing tests

This reverts commit afdf1295b91c1fa1f7350f6b43b1b27ac21696b9.
Stop leaking global 'valueOutOfScope'
Move variable declaration to top of scope
Stop leaking global '_value'
Stop leaking global 'type'
Force mocha to check for global leaks

Hopefully all global leaks should be gone.