Rework 'rearrange_init_code' functions
Submitted by Botond Baranyi
Link to original bug (#561714)
Description
The 'rearrange_init_code' functions in the TTCN-3 compiler ensure that values and templates are initialized in the correct order in C++, even if in TTCN-3 they are used before their initialization.
During the recent reference refactoring some irregularities have been discovered in these functions.
Version: 6.6.1