Make transactional endpoint correctly serialize scala collection types, fixes #1046