(#19810) Allow Proc confines in Ruby 1.8

The confines use === for comparison which in Ruby 1.9+ resolves to
call(value) in Proc objects, this allows them to be used in all Ruby
versions.