Fixed bad encoding of empty arrays.

This deals with https://github.com/triAGENS/ArangoDB/issues/495 from the ArangoDB-PHP side.

When creating a document with no data, ArangoDB-PHP sends a `[]` instead of `{}`. This causes all sorts of problems on the server.