[JSC] Change most of enum in Yarr to enum-class