SimObjects: Clean up handling of C++ namespaces.