Improve StaticFor performance and add free standing functions
The new functionality was done for https://git.astron.nl/RD/DP3/-/merge_requests/1361.
Edited by André Offringa
The new functionality was done for https://git.astron.nl/RD/DP3/-/merge_requests/1361.