HPCC-12303 Replace CIArrayOf<CStateHash> in ws_machine

1. Replace CIArrayOf<CStateHash> with MapStringToMyClass<IStateHash>
2. Better return check for BoolHash getValue().

Signed-off-by: wangkx <kevin.wang@lexisnexis.com>