Fix extraction of packages from base learners