Using iterableToJSArray to dump mem profile data. The fold-based method ...

...is inefficient