fixed specs for some functions which are deprecated in otp17

dict() and digraph() are deprecated in OTP17 and will be removed in OTP18