Plumb through swift `check_source_compiles` support. Add tests to check that valid swift sources compile and invalid sources don't.