Small fix in the NonTerminalType.
Small fix in the ResultFactory.