Fix crash with signals in nested subprograms. Issue #82