Check "last block" by position, not value.

All tests now pass again.
Merge pull request #2 from coke/master

All tests now pass again.