Fixes an issue with 3rd party libraries that extend the native Array prototype.

Some libraries (e. g. Ember.js) modify the native Javascript Array prototype. Additional methods or properties added to the prototype were erroneously being inlcuded in the list of elemets with which to populate the form. This check makes sure that only actual array elements are included in the form.