Silence warnings on OTP 17.0

This PR silences three warnings about deprecated types when compiling `eredis` under Erlang 17.0.