fix 189

I basically just copied https://github.com/LearnBoost/stylus/issues/1416#issuecomment-36908239 from @Panya to close #189 and added a basic test.