Changed primitive states now create KApps of sort KItem instead of K.

Changed primitive states now create KApps of sort KItem instead of K.