Rollback itemset if we can't fit all of it.

Reset talents before learning template.