remove use of keys with ref

Don't use `keys` with a hash reference. This feature was added in Perl
5.14, and was declared experimental later. Closes #5 and #4.
add cpanfile

Add a cpanfile to make the code a little easier to work with on new
machines. Generate it with dzil at build time and copy it into the main directory. Closes #1.