Check authentication scheme in Basic auth

`authenticate_with_http_basic` and its families should check the authentication
schema is "Basic".

Different schema, such as OAuth2 Bearer should be rejected by basic auth, but
it was passing as the test shows.

This fixes #10257.
Run login_procedure only when the auth_scheme is valid
Delegate predicate methods to injected type object on Column
Use the generic type map for PostgreSQL OID registrations
Merge pull request #15204 from sgrif/sg-delegate-predicates

Delegate predicate methods to injected type object on Column
Merge pull request #15206 from sgrif/sg-type-map-postgresql

Use the generic type map for PostgreSQL OID registrations
Inline typecasting helpers from Column to the appropriate types
Merge pull request #15207 from sgrif/sg-inline-column-helpers

Inline typecasting helpers from Column to the appropriate types
Merge pull request #11346 from tomykaira/fix_10257

Check authentication scheme in Basic auth
Delegate `type_cast_for_write` to injected type object
Merge pull request #15208 from sgrif/sg-delegate-type-cast-for-write

Delegate `type_cast_for_write` to injected type object
Delegate `klass` to the injected type object