RUBY-646 raise ArgumentError instead of RuntimeError