Extended REDUCE and WHILE unwind tests

Extended tests for bug#1760 and bug#1519.