Test for array like objects instead of straigh array. Closes troopjs/troopjs-core#116
Use a _real_ constant for TOSTRING_FUNCTION