Fix ceylon/ceylon-compiler#1561
Add test for ceylon/ceylon-compiler#1561
Merge pull request #413 from lucaswerkmeister/master

Fix ceylon/ceylon-compiler#1561 (+ test)