Adding static-only switch to pickling

Async has it in `src/test/scala` though: https://github.com/scala/async/blob/master/src/test/scala/scala/async/package.scala