added filter and filterOne methods to ArrayList.

moved the getAggregateDefinitions method from the ModuleDefinition to the ModuleSchema class
and renamed the method to getUsedAggregateDefinitions.
added convenience methods for filtering by type and name to the FieldDefinitionSet and OptionDefinitionList classes.