add test for #181

The reason why #181 is not expanded is not the if statements, but the
complex expressions in arguments. See also t/optimize/040.
Merge branch 'gfx/issue-181'