Add Doctrine ORM serialization form type

Fix TypeTestCase to use deprecated version

Switch from entity manager to doctrine registry

Fix unit test