Fix issue 10236 Ddoc: Warning on wrong parameter names/count

Fix issue 10236 Ddoc: Warning on wrong parameter names/count

* issue a warning if the parameter cannot be found in the [template] function declaration.
* issue a warning if the parameter count in the Ddoc differs from the declaration