fix non-linear runtime complexity on the stateful scanner due to STRANGENESS
fix non-linear runtime complexity on the stateful scanner due to STRANGENESS

markwatkinson/luminous,markwatkinson/luminous,markwatkinson/luminous