Use string type for categorical data because Python 3 cannot sort list with mixed float and string types
Added workaround for Astropy bug in Python 3
Fixed more tests
Fix img_data factory when PIL is not present