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