Fix ceylon/ceylon-compiler#1654
Add test for ceylon/ceylon-compiler#1654