Fixed fatal errors when AQL statement returns a non-array that cannot be
turned into a document.
Fixed cursor sanitize for PHP 5.3 compatibility.
Fixed PHP 5.3 compatibility fix.
Merge pull request #79 from F21/Fix_statement_non_array_results

Fixed fatal errors when AQL statement returns a non-array that cannot be turned into a document.