Dialyzer

Add dialyzer make targets and provide a series of fixes for outstanding dialyzer warnings.