SF Bug #1299

Prevent collision of generated director names for languages that support the nspace feature (Java, C#, and D) that occurred when two classes in different namespaces had the same name.

Added a test case to exercise this patch.