Support DbType.Object a bit better maybe

This change is stolen from #102 as mentioned in https://github.com/npgsql/Npgsql/issues/201#issuecomment-39604997

Sending a PR so we can run all the tests against it. This PR also adds some new tests that failed without this change.