test on update queries: prepared statements vs queries
connection rawCallback as flag
Callback with err when the param can not be guessed.

Other changes:
* Lazy frame write
* Clear errors for unhandled types
Merge from upstream