Bugfix: Don't expose result variable as global from deepEquals

The deepEquals test method exposes one of its internal variables on the global name space.

PS: This fix is in src/core/internal, the commit does not contain the generated files in dist.