Can you post the script you're using?
Please post the actual script that you're using.
Is there a reason you don't just use the Orion module that comes with the SDK? It does all the unpacking for you and turns the results into simple arrays.
Absolutely, what @mesverrum said. I pushed an example doing exactly what you're looking for to the SolarWinds repository. Until it's merged, you can see it here:
https://github.com/solarwinds/OrionSDK/pull/216/commits/ed0a2679fe7aa31280b8c6da1e88d8dc217d37e8