Support for extended types in PostgreSQL database

It is a follow up on the question I sent on the mailing list to support enum types.

The code to use this feature would be:

    on(samples)( s=> declare(
      s.status is(dbType("sample_status"), indexed)
    ))