Change nt_items_for_nt interface type so that it takes a substring S(s,i,j) rather than an int j

This is in preparation for some more mildly context-sensitive parsing examples