Panic if trying to register an func with the same name

Signed-off-by: Michael Crosby <michael@docker.com>