Refactored some internals of OData::Query::Criteria to make inheritance easier. Added pruning of certain OData::Query criteria sets to ensure better memory efficiency.