guidebox_getid.js: added a toArray function to handle the array-like object.

`data` in `Spice.add` used to be able to handle array-like objects, but that functionality was removed. So I added this small function to handle that.