Title: From a Flexible Type System to Metapredicative Wellordering Proofs