OTHER: Use function array instead of switch for aggregation.
OTHER: Add _END to fetchspec enums and check bounds on use.
OTHER: Use xmmsv_*_iter(entry|pair) instead of _valid.

These functions check _valid internally so the functionality
is the same. Benefits are less code and happier static analysis.