Fixed various problems connected with use of functions. Should now work properly in Jenkins.
Fixed various problems connected with use of functions. Should now work properly in Jenkins.

SKA-ScienceDataProcessor/algorithm-reference-library,SKA-ScienceDataProcessor/algorithm-reference-library,SKA-ScienceDataProcessor/algorithm-reference-library,SKA-ScienceDataProcessor/algorithm-reference-library,SKA-ScienceDataProcessor/algorithm-reference-library