added convenience functions for cleaning a parameter collection in the optimizers