semantic: Turn TypeReferences into CreateDelegates where appropriate.