Fixed nbl-get-all-aliases and nbl-get-unique-nonunique failing on URI's with empty paths.
Added duplicate definition check.