The check for lvalue access has been extended to arrays for simplifying the conditions. Fixes bug 660426.