Adding provisional support for types in insert.
Adding support for types in selectors.
EntitySelector now takes a selector in construct().
Entities can now be selected with a type converted clause.
Types are now converted to PHP values on select.
Adding UpdateTest.
Adding support for types on update.
Merge branch 'types'
Testing both insert() and save() in insert test.
Bugfix - preventing extra relation queries.

This stops a related object being queried for again if it doesn't exist.