Fix: Add compat code for pd.Categorical in pandas>=0.15

pandas renamed pd.Categorical.labels to pd.Categorical.codes. It's
also now possible to have Categoricals as blocks, so Series can contain
Categoricals.
But that will fail when data.labels is not there(so in current pandas master and after the deprecation period), as the `data.labels` is evaluated before calling `getattr`.