Add missing hash functions (and/or use default ones). Closes #790.