Add implementation of pair and null-safe hashCode utility method.
Authored by: hagru 2015-05-24
Parent: [r280]
Child: [r282]