Started changing aggregates to pointers.
Fixed the resolver.
Added unit test support.