allow for dangling comma

Drupal developers are much to used to the PHP array syntax which allows a dangling comma:

    array(
      'foo' => 'bar',
    );

Doctrine doesn't allow for this and this causes a lot of grief. This PR fixes this. It seems `{}` arrays already support this.