Fix code generation of nested class when template factory method is omitted.
Disable template factory method suffix field in configuration dialog when
template factory method generation checkbox is not selected.