Changing deprecated ClassManifest into ClassTag. Removing calls to deprecated erasure.