Throw exception on arity mismatches for learned facts.
Fix a few arity mismatches for table label generation.
Learn attribute labels for composite attributes which
will never have column references.