Fix infinite recursion in semtypes with recursive types
Fix infinite recursion in semtypes with recursive types

Fixes #2213

MrJohz/Nim,bvssvni/Nim,Senketsu/Nim,Matt14916/Nim,nanoant/Nim,jsanjuas/Nim,BlaXpirit/nim,nafsaka/Nim,Matt14916/Nim,douglas-larocca/Nim,greyanubis/Nim,tulayang/Nim,bvssvni/Nim,nanoant/Nim,bvssvni/Nim,mbaulch/Nim,mbaulch/Nim,xland/Nim,nimLuckyBull/Nim,Matt14916/Nim,sarvex/Nim-lang,Salafit/Nim,russpowers/Nim,nimLuckyBull/Nim,mbaulch/Nim,fmamud/Nim,judofyr/Nim,greyanubis/Nim,tulayang/Nim,sferik/Nim,Dhertz/Nim,sferik/Nim,mbaulch/Nim,JCavallo/Nim,msmith491/Nim,Dhertz/Nim,tulayang/Nim,haiodo/Nim,fredericksilva/Nim,JCavallo/Nim,tulayang/Nim,singularperturbation/Nim,sarvex/Nim-lang,xland/Nim,kirbyfan64/Nim,Salafit/Nim,zachaysan/Nim,fmamud/Nim,haiodo/Nim,reactormonk/nim,nimLuckyBull/Nim,gokr/Nim,judofyr/Nim,haiodo/Nim,BlaXpirit/nim,greyanubis/Nim,fmamud/Nim,gokr/Nim,nafsaka/Nim,singularperturbation/Nim,sferik/Nim,singularperturbation/Nim,reactormonk/nim,bvssvni/Nim,nimLuckyBull/Nim,jsanjuas/Nim,xland/Nim,reactormonk/nim,Dhertz/Nim,zachaysan/Nim,sarvex/Nim-lang,douglas-larocca/Nim,gokr/Nim,MrJohz/Nim,dom96/Nim,greyanubis/Nim,jsanjuas/Nim,Matt14916/Nim,fredericksilva/Nim,sarvex/Nim-lang,JCavallo/Nim,gokr/Nim,endragor/Nim,Senketsu/Nim,Dhertz/Nim,endragor/Nim,xland/Nim,xland/Nim,douglas-larocca/Nim,bvssvni/Nim,nanoant/Nim,reactormonk/nim,dom96/Nim,endragor/Nim,tulayang/Nim,haiodo/Nim,zachaysan/Nim,judofyr/Nim,Dhertz/Nim,tmm1/Nim,MrJohz/Nim,Senketsu/Nim,nimLuckyBull/Nim,fredericksilva/Nim,tmm1/Nim,jfhg/Nim,fmamud/Nim,douglas-larocca/Nim,dom96/Nim,kirbyfan64/Nim,endragor/Nim,jsanjuas/Nim,singularperturbation/Nim,reactormonk/nim,Salafit/Nim,dom96/Nim,JCavallo/Nim,nanoant/Nim,sarvex/Nim-lang,endragor/Nim,Matt14916/Nim,msmith491/Nim,nanoant/Nim,nanoant/Nim,endragor/Nim,dom96/Nim,tmm1/Nim,reactormonk/nim,JCavallo/Nim,sarvex/Nim-lang,fredericksilva/Nim,kirbyfan64/Nim,judofyr/Nim,xland/Nim,endragor/Nim,zachaysan/Nim,russpowers/Nim,russpowers/Nim,zachaysan/Nim,judofyr/Nim,greyanubis/Nim,jfhg/Nim,fredericksilva/Nim,haiodo/Nim,jsanjuas/Nim,gokr/Nim,Dhertz/Nim,nafsaka/Nim,jsanjuas/Nim,fredericksilva/Nim,jfhg/Nim,singularperturbation/Nim,nafsaka/Nim,Matt14916/Nim,BlaXpirit/nim,dom96/Nim,judofyr/Nim,Salafit/Nim,greyanubis/Nim,Senketsu/Nim,sarvex/Nim-lang,sferik/Nim,judofyr/Nim,gokr/Nim,BlaXpirit/nim,nafsaka/Nim,msmith491/Nim,msmith491/Nim,MrJohz/Nim,BlaXpirit/nim,kirbyfan64/Nim,gokr/Nim,msmith491/Nim,russpowers/Nim,russpowers/Nim,reactormonk/nim,douglas-larocca/Nim,Matt14916/Nim,nafsaka/Nim,Dhertz/Nim,sferik/Nim,MrJohz/Nim,douglas-larocca/Nim,singularperturbation/Nim,gokr/Nim,russpowers/Nim,Salafit/Nim,reactormonk/nim,Salafit/Nim,tulayang/Nim,mbaulch/Nim,judofyr/Nim,tmm1/Nim,kirbyfan64/Nim,jfhg/Nim,fmamud/Nim,nanoant/Nim,russpowers/Nim,tmm1/Nim,kirbyfan64/Nim,bvssvni/Nim,sferik/Nim,mbaulch/Nim,fredericksilva/Nim,dom96/Nim,fredericksilva/Nim,tmm1/Nim,bvssvni/Nim,greyanubis/Nim,fmamud/Nim,fmamud/Nim,zachaysan/Nim,douglas-larocca/Nim,JCavallo/Nim,douglas-larocca/Nim,kirbyfan64/Nim,Senketsu/Nim,jfhg/Nim,BlaXpirit/nim,nimLuckyBull/Nim,haiodo/Nim,Salafit/Nim,msmith491/Nim,Senketsu/Nim,Senketsu/Nim,MrJohz/Nim,MrJohz/Nim,sferik/Nim,tmm1/Nim,xland/Nim,mbaulch/Nim,nimLuckyBull/Nim,zachaysan/Nim,BlaXpirit/nim,jfhg/Nim,haiodo/Nim,msmith491/Nim,jfhg/Nim,kirbyfan64/Nim,sferik/Nim,jsanjuas/Nim,BlaXpirit/nim,nafsaka/Nim,JCavallo/Nim,singularperturbation/Nim