Fix leaking non-public 'use' statements with glob imports
Fix leaking immediate children and types via glob imports
Fix implicit leaks of imports throughout libraries

Also touch up use of 'pub' and move some tests around so the tested functions
don't have to be 'pub'