Add `Array#to_proc` method

Idea: @henrik

Usage example: http://thepugautomatic.com/2014/11/array-to-proc-for-hash-access/