fix direction of namespace separators for generated classes