Issue 8922 - __traits(parent) should fail on top package import

http://d.puremagic.com/issues/show_bug.cgi?id=8922