Fix pack/unpack methods for recommenders