PnP solver: fixed element-wise access
Merge pull request #3157 from PhilLab:pnpFix