local: add swapped operands support for LocalProxy

Need someone to review if this is actually correctly implemented.