CLASSICAL YANG-MILLS THEORY WITH FERMIONS I: GENERAL PROPERTIES OF A SYSTEM WITH CONSTRAINTS