various changes: closed handles, print-methods,

- add some print-object-methods
- add checking for closed handles
- reverse buffer and stream argument in read-row-into-sequence
- optimize usage of statement handles in query-streams