Properly handle nested scl calls. Fixes #234