Updating the way that objects iterate their properties to support a 'length' property