Fix null exception on 'destroy' when someone added something to Array.prototype

For/in for interation over arrays only works as long as Array.prototype was never extended.  Unfortunately, lots of people love to stuff things in Array.prototype (like #last()) and so changing these few lines to jQuery.each() fixes it right up.