Added ability to guess type in makeCatSON.