grndump: add --dump-indexes option

It is useful to dump only indexes.

The implementation was included in
3a1e3d0617d24caddcb612a86056d62d8ca72725...