handle new error API of transactional endpoint
removed redundant conditional check
Merge pull request #1510 from akollegger/browser-textual-error-codes

handle new error API of transactional endpoint
Remove CypherType.isCollection
Use internal rather than scala-based heirarchy for types
Correct behaviour of merging type sets
Rename iteratedType on AnyType to legacyIteratedType

And use innerType on CollectionType
Stop TypeSet inheriting from Set[CypherType]

This allows for a more specific interface without the need to implement
all the methods of Set manipulation