Fixes OID warnings when using PostgreSQL

Postgres correctly identifies OIDs when `BEARING` and `DISTANCE` columns contain numerical values. It fails to identify OID for a NULL type.

This patch explicitly sets an OID type for NULLs when running in PostgreSQL environment.

References #637 and #628