Fix De Bruijn off-by-one in generated code for ST.