Check number of name/value pairs strictly

Any frame error (e.g. broken header block) should be reported.