Pass config through more functions and fix dialyzer errors

One could describe `pos_integer()`, especially since it's callback.