Fix trailing comma crash with Ruby 1.8.

Fixes #460