Fix issue with "each" being called on a native array