WyRT: Updated some files in whiley/lang to ensure that functions are properly declared as public.
WyC: refactored and fixed the way visibility testing is performed for source files.
WyC: updated the mechanics of testing name visibility in both source files and wyil files.