This reverts commit 65cd843ae0, reversing changes made to d255c6a57c.
65cd843ae0
d255c6a57c
check_mod_impl_wf
check_mod_type_wf