#424 Add check to disallow specific statements in internal user defined functions.

Merged Albert Hofkamp requested to merge 424-add-check-for-specific-internal-func-stats into develop

And a check to disallow particular statements in internal user defined functions.

Addresses #424

Merge request reports