Add fine-grained hooks to enable use with scala-pickling

This enables a lot of the functionality needed in scala-pickling.

Also disables parallel test execution, since the test runner seemed
to be hanging frequently otherwise.