Fix to some categorical type exposure

The CategoricalType notebook wasn't working. Added fresh unit
tests that run through the example from that notebook.