Added DefaultedKey implementation for HashMaps

Using the factory to create generic-type values for keys causes tonnes of warnings unfortunately. This is here to eliminate the @SuppressWarnings needed to do this.

Signed-off-by: Irmo van den Berge <bergerkiller@gmail.com>