adding Index caching, and cleaning up last.
adding range info to toJsonHelper.
Merge branch 'aql2' of ssh://github.com/triAGENS/ArangoDB into aql2