Fail when namespaces use/require themselves.

This prevents a StackOverflowError that will occur when computing
transitive dependencies for a namespace that depends on itself.