HPCC-8834 Package base resolutions should not depend on declaration order

Assumptions about the resolution of bases made packages dependent on
the order of declaration in the package file.  Make the resolution
of bases recursive and not dependent on order.

Signed-off-by: Anthony Fishbeck <Anthony.Fishbeck@lexisnexis.com>
Merge pull request #3995 from afishbeck/packageBaseOrder8834

HPCC-8834 Package base resolution should not depend on declaration order

Reviewed-By: Richard Chapman <rchapman@hpccsystems.com>