ScFunctionWrapper should behave correctly in terms of super methods #SCL-6789 Fixed
(cherry picked from commit 5566214)