Fix all dialyzer warnings and turn on warn_untyped_record flag