Fixed transaction.Reset() when the transaction is failed

- properly set the state after calling fdb_transaction_reset
First attempt at porting the Queue layer [Work In Progress]

- FdbQueue deals with slices
- FdbQueue<T> used tuple encoding
- ported the tests in the python layer