Code cleanup in core/array.rb