Improve dumping for subtypes
Fix crash with unconstrained ports
Tiny optimisation to a couple of cgen functions