Make TListOfTypes a 'private' class in core/base.

For now, this is just an implementation details, no need
to expose it to the user.