if Prototype is loaded, remove its Array.toJSON 

This is a corner case given Prototype isn't used all that often anymore, but it was a particularly nasty one to track down. It would be nice to save other people the trouble.