allow for dangling comma

Drupal developers are much to used to the PHP array syntax which allows a dangling comma. Doctrine doesn't and this causes a lot of grief. This PR is one fix. I presume I might need one for `{}` arrays as well.