Fix emitting of constants in nested code blocks
tests: Update for c1762617