resizing titleCache and fullTitleCache (#1592) and renaming CategoricalData.states -> stateData (#2923)
move back PolytomousKeyGenerator and move test class from service to model
move PolytomousKeyGenerator to tests