feat(library/aliases): protected definitions in nested namespaces, closes #331