fixed a tricky array conversion bug
Merge branch 'v0.10.x_bugfix' into v0.10.x