fix perl 20 keys on reference warning

Fixes #99. Needed to dereference hash to prevent Perl 5.20 from displaying a warning.
//cc @jagtalon @HackOrQuack