Properly support functions with arbitrary arity in type specs.

Dialyzer now understands the "fun(...)" syntax in type specs.
Remove pubsub and comm_layer tests from testsuite

These tests recently broke because of the deprecation of the package system.
Furthermore, they included copyrighted code.
Finally they were not minimized not targeted to any specific feature and had no
warnings being reported.
Update one more unused funs result as per ffe582b