RUBY-646 Raise ArgumentError instead of RuntimeError