Fix categorical axis detection

Broken by
https://github.com/ContinuumIO/bokeh/commit/3cc34a779ba692f9fcf67840556c
738e2e15ff56#diff-3e6325a902133d8fd2e886fe13214143R248