Fixes Issue 9531 - __traits(parent) should work on declarations in a unittest.