Test for Compiler bug when if(is...)/else if(is ...) is nested in while() (#1918)

Turns out this was a spec bug ;)