Adds partial Postgres support for ByteKey

This commit updates the pa_grid function for PostgreSQL to support the
ByteKey. Not yet fully finished.