Add partial tests, and partial fix for whosmat.

Whosmat now returns a shape of None (while it used to raise a TypeError
before) as I haven't figured out how to load the shape without loading
the full object yet.