Add decorator support for Registry.register with optional arguments

Fix #95