Parse hashes with an optional trailing comma...

... before the closing curly brace.