Implemented out-of-order declaration parsing (type preparse).
Removed usage of implicit declaration lists.
Updated tests.