Fix serialization in sqlreturn and more tests.

sqlreturn(::Any, ::Vector{UInt8}) was serializing values so any values passed to
sqlreturn(::Any, ::Any) were being serialized twice. The net result of this
being that they were returned as bytearrays.