Fix XOR maths for overlapping inputs by setting the lifetimes correctly.

Signed-off-by: Rudolf Polzer <divverent@xonotic.org>
A test for that xor stuff (the same one I used to cause the bug to manifest in the first place).