fix Issue 10063 - inout+pure results in ability to produce immutable reference to mutable data