C++ fix: HashElems codegen to pass delite tests