Ensure native implementations of getElementsByClassName and compareDocumentPosition. Fixes gh-228.

Also pass all tests with bypass optimizations on by including testinit in the iframe.