HPCC-8847 Visibility and module inheritance

Signed-off-by: Richard Taylor <richard.taylor@lexisnexis.com>