(GEP-208) No error is generated for typed arguments when version < 4.0

Add a check for typed arguments in definition argument lists and a
unit test that verifies the check.