Fixes #3702 - Ruby 1.8 compatible fix for arrays