Add Doctrine ORM serialization form type

Fix TypeTestCase to use deprecated version