Extracted 'constructor' for TypeFillingVisitor.
Added GetTypeOf to expose getTypes().