Improve the code of RubyArray#fill