Some enhancements to binary checking.

1. Special case for inner classes of packge-private objects.
2. Made tools classes accessible when running `spark-class`.
3. Made some declared types in MLLib more general.
4. Various other improvements to exclude-generation script.