Change Array.forEach and Array.indexOf to util.forEach and util.indexOf

This patch removes the two Array monkeypatches. It's highly unexpected that jsoneditor is going to augment the properties of Array and creates an unwanted dependency.