[#3488] Compilation error in generated code, when a similar tables T_A and TA exist - Added failing test case