Fix a bug surrounding double registering of 0 arity key.