Refinements to Ensemble and LinearEnsemble.