This commit implements more rigorous SPA packet field count validation that takes into account expected field counts for each SPA message type. Two new libfko error codes have been added in support of this, and the corresponding changes made in the perl and python modules.