Workarounds before ruby-core officially supports Proc#to_source (& friends)