Do not wrap arg arrays in RubyArrays prematurely

Master version of #1195