Workaround for #arity checks in Ruby 1.8/1.9