Fix XF2.2 boolean options was not cast as bools as expected
Fix XF2.2 default value for float options were cast to integers instead of floats
Update backported templater functions array_diff/array_reverse/array_sum to match XF2.3 behavior. These return arrays, not collections depending on input.