Fix #1046

This makes the serialization for the new transactional endpoint handle scala iterables correctly.

Fixes https://github.com/neo4j/neo4j/issues/1046