Fix dialyzer calls

also make sure that dialyzer can be run as a top level
fix errors generated found dialyzer