scanner: Add warning for closure annotation
The closure annotation only takes an argument when used for parameters of a function. When used on the parameters of a callback type, it's a unary annotation and takes no arguments.
Make sure we warn whenever the closure argument on a callback type is wrongly annotated.
Fixes: #449 (closed), #450 (closed)