Separate IRTypeManager into new source file. Move all IR generation classes to ir/