Add array handling to ruby templates and add the repl-docs template for
ruby.