Core: Remove unnecessary commas

Last element of enumerator does not need comma after it's value.

Closes #9367