fixed bug and added test for it.
fixing duplicates in dynamic bounds
adding tests for last
Merge branch 'aql-feature-index-or' of ssh://github.com/triAGENS/ArangoDB into aql-feature-index-or