Generate type casting code in all cases

Even if there are no date_format or tag_name field configuration
directives

Fixes xavielacot/sfDoctrineRestGeneratorPlugin#25