Fixed a bug when handling declared but not defined types.
Fixed a bug when handling declared but not defined types.

When entering a sub-namespaces, all current level declarations are
frozen in their states, meaning there cannot be a declared but not
defined type at that moment (either a procedure or a function
declaration).

TWal/ENS_adac