Living standard: Add support fot NodeFilter constants

Clean PR version of #928.
w3c test is failing: `core.NodeFilter` is not exposed as `NodeFilter` to the test's global object.