hidl_enum_range: support const/reverse iteration

This also moves the implementation to auto-generated code. Only the
values themselves are generated in auto-generated code.

Bug: 118395041
Test: hidl_test
Change-Id: I4ae3cf992a64012e431c0ade3fc4ac3645f96756
1 file changed