Throw DuplicateDefintion error if a custom element is registered more than once

Fixes #81