BUG: fix Categorical comparison to work with datetime

`pd.Timestamp` is one of types that don't pass `np.isscalar` test previously
used in _cat_compare_op, `pd.lib.isscalar` should be used instead.