Unique and primary key constraints are both dumped using ALTER TABLEstatements. Unique indexes with CREATE INDEX.
Basically, pg_constraint left outer'd to pg_index.