TANAL-4: Correct resolve-ns handling of aliased namespaces

Signed-off-by: Bronsa <brobronsa@gmail.com>