Optimize Tx.Check().

This commit removes several memory allocations occurring on every page and also caches the freelist map used when iterating over the pages. This results in significantly better performance.
Merge pull request #178 from benbjohnson/optimize-check

Optimize Tx.Check().