Fix dialyzer warnings.

This addresses all warnings in http://giddyup.basho.com/#/projects/smoke-tests/scorecards/86/86-1860-sidejob:dialyzer-ubuntu-1204-64/40972/artifacts/621112