Fixed generation of nested declarations in classes (part 2).
Removed enum class in the new nested type test since it's not supported by VS2010.