Add `Array#to_proc` method

Idea: Henrik Nyh @henrik

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