Add fast-path for bools to categorical handling.

Fixes #44.
Merge remote-tracking branch 'origin/master'