Fix return value of .getIterator and .getCloner

They failed to return a function for object literals and arrays.