More unit tests

Add some more blaze unit tests, a temp dir test utility, and fix bugs revealed by testing.

Includes cleanup of blaze.toplevel.open() implementation and docstrings, though two tests involving opening tables are not passing yet.