Write enum string to JSON dump

This commit replaces the enums in ir_representation_json.h with strings
so that the dumps are human-readable.

Bug: 112877706
Test: ./test.py
Change-Id: Id17671b6ef40a651da238c1bac97977343a4d095
8 files changed