Fixed missing slashes for namespaced class names

Namespaced class names as string uses double slashing so the class names have to be adjusted to point to the right instance class.