remove subqueries that produce results that are not used in a query
added `maxNumberOfPlans` option
Merge branch 'aql2' of https://github.com/triAGENS/ArangoDB into aql2