implement case-on-Word in the byte code generator/interpreter (#2881)