Fixed #1331, Argument/Param checking does not work

During changes in the last sprint the checking of arguments and
parameters was broken. This commit restores that functionality.