Revert "Use a type object for type casting behavior on SQLite3"

Reverts rails/rails#16003

@sgrif  https://travis-ci.org/rails/rails/builds/29157280