Bug fix caused by the previous function renaming

Two of the calls to "Simple.type" did not get
renamed in the previous commit. These have
been fixed.
Added new function Simple.erase()

This new function is used to either removes elements
from an array, or to remove a property from an object.