Added clear method to ArrayMap and ArraySet