Added naive support for sending Regex objects between JS and Ruby.