Principal type schemes for an extended type theory