Issue-3449: Add multioutput support to bagging

Also edited the tests to evaluate the multioutput changes; currently passes all tests, but let me know if I missed an obvious case!