BF: fix doctests in benchmarks

Wasn't expecting the doctests to run; import names have changed.
BF: fix cython buffer error; change mask to char

Using int type for mask seems to confuse cython on 64-bit; change to
char type for mask.
Merge pull request #120 from matthew-brett/fast-squash-fix

Fast squash fix