First round of Dialyzer fixes.

cc: @seancribbs