Compiler bug in MQL5?
That's a long time, and I don't know if you reported this or received an answer, but it's actually not a bug.
There is actually an implicit copy operator on mql5 (from build 1640). That's why you got this behaviour.
Thanks to @Amir Yacoby for his contribution to this answer.
Before I submit this to Help-desk can someone tell me if this is a legitimate a compiler bug? This only happens on MQL5, not on MQL4.