Make Array methods return Array instances instead of subclass instances by jeremyevans · Pull Request #3690 · ruby/ruby
This changes the following methods to return Array instances instead of subclass instances: Array#flatten Array#slice! Array#slice/#[] Array#uniq Array#* Fixes [Bug #6087]