DROOLS-289: PackageBuilder throws NPE when a declared class extends another, undeclared one
	- Fixed problem with multiple resources declaring the same rule and a Type Declaration.