Switching to use checkAttributeNumArgs for trivial cases.  No functional changes intended.