Do not convert array values in place

Fixes #502.