Registry: Protect against putObject misuse, handle duplicate registrations better