Checkpoint for debugging
Fix LocalCompiler bugs

The algorithms for analyzing shadows and obscures for prefix tables
had bugs. This commit completely rewrites the Table module, replacing
them with simpler versions that perform correctly on all unit tests
and our regression.