fixes alias error with typepsigs inside nested modules or classes