changed `COLLECT...INTO x COUNT` to `COLLECT...WITH COUNT INTO x`

allow executing subqueries without double brackets

jslint
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel
fixed tests