more asserts
potential fix for #554
Merge branch 'devel' of https://github.com/triAGENS/ArangoDB into devel