Clarify types for sw.scope parameters in the algorithms