fix #687 and add test
Merge branch 'master' of github.com:ceylon/ceylon-spec