Symbol#to_proc to support block call.

based on a patch from @ksss; close #2071