allow pids in typespecs

Fixes dialyzer errors that occur when pure pids are used with poolboy operations (such as `transaction/2`)