Restored an array's inherited proto back to object

Found that the array's object prototype was missing and caused a "Cannot convert object to primitive value" type error when trying to use arr.toString() or isNaN(arr).