Switch PGType handlers to be extensible

In progress: date types and custom handlers are not implemented yet