Adds explicit Unit type annotation to functions with deprecated procedure syntax.