Implemented type objects and method objects.
Separated loader code into its own file.
Fixed an error collecting methods in compiler.