[Compiler] Split typesystem from objecttree in IR.
This is the first step in a revamp of the IR. It also removes Component, makes File be a Node and rename Class to LibraryClass.