Allow passing of NULL as key free function