EPI format: Add proper hash functions. Closes #495.