Perl decoder: Configurable limit on number of hash entries

This is to be able to respond to future hash collision attacks easily.