Add layering_check to Bazel CI.

This will avoid regressions on #596.
2 files changed