Introduce Opal.to_ary runtime helper

to_ary is used to implicitly convert objects into arrays where they are
expected, e.g. mass-assignments