Added JMSSerializer helper back since it's broken in JMSSerializerBundle.