Add #to_ary to Native::Array and improve code