Unify named objects - all types, constants, variables and functions
are stored in a common array.

This should fix some of the issues with name collisions, etc.