StringTemplate warnings removed(ANTLR
 compilation cleanup)
Do not generate return structs twice when using scope variables