Typed static queries

I'm opening this PR so we can discuss the current state of the implementation.
Fixed in [commit bfa2570](https://github.com/Radsaggi/slick/commit/bfa2570d0ae11dc61549ad6af910422723ca4719)