Placed certain Array functions inside a closure so the Array constructor (Array or NodeCollection) may be specified

This eliminates the need for the (really bad practice) array private constructor reference.