Added assertKeyValue() and refactors assertKeyValueType() to use it.  Added assertCodeValueOutput() and necessary friends.  Improved checking of some optional fields.
Added assertKeyValue() and refactors assertKeyValueType() to use it.  Added assertCodeValueOutput() and necessary friends.  Improved checking of some optional fields.

GENI-NSF/gram,plantigrade/geni-tools,GENI-NSF/gram,ahelsing/geni-tools,GENI-NSF/gram,tcmitchell/geni-tools,ahelsing/geni-tools,tcmitchell/geni-tools,plantigrade/geni-tools