Added support for unset.

This is really fragile though - it only works on objects in javascript, which is okay as we generate arrays as objects but we can't interface with other Javascript code that actually uses arrays.
Removed debug.