fix handling of arrays in embedded mode

Fixes https://github.com/andreasronge/neo4j/issues/384. Props to @andreasronge for pointing me to the solution!