Issue9652 -  __traits(getAttributes) doesn't work with manifest constants 

Fix Issue9652 and other.
Allows getAttributes, getProtection and parent traits for manifest constants.
Also fix isSame issue.