pkgsummary.py: Validate header on JSON read

If the id or version don't match expectations, throw the new
SummaryException.