Modified hash function organisation

List of has functions replaced by a single function that returns a list
of hashes. This enables the filter to be pickled by removing the
dependency on (unserialisable) closures.