Fixed some issues with symfony firewall and ModelType.