Fix issue with Symfony 2.6 and add hidden widget type (#6602)