Fix dialyzer warnings

Cleans up all existing warnings. @cmeiklejohn