fixing bug with ERP lex ids (weren't getting reset after type detection pass).
DriftKernel: avoid creating unused scale groups by indirecting lexids through a hash map.