shoestring won't detect arrays

The parameter passed to toString should be the variable prim (which is presumably an array), not pType which is a string and will always give '[object String]'.