add jdk-test target, and fix failures

NOTE: I don't expect this to be merged immediately, because the LazyLoading test is still failing. The implementation of jdk-test is also up for discussion, I think.

The intent of this target is to run our test suite against the installed jre.
This should help prevent our VM from diverging in implementation from the jdk.

The remainder of this commit fixes the problems that this exposes.