Doctrine CouchDB ODM

Add converions according to $class->properties[$name]['type']