PDIO-311. Add inactive attribute support to itemrec feature based.

Also handle itypes for training.