Write freelist after each commit.

Well, this is embarrassing. Somehow the freelist was never getting written after each commit. This commit fixes that and fixes a small reporting issue with "bolt pages".

This pull request is brought to you by don't-trust-your-test-coverage-numbers-alone. :)

Thanks to @tv42 and @pkieltyka for their help in figuring this out.

Fixes: #100