Fix array-like handling in JSON.stringify

This fixes #73