fix stylesheet gradient index for stroke and fill

fixes Issue #24
Merge pull request #34 from adobe-research/jh/bugfix

fix stylesheet gradient index for stroke and fill
Merge pull request #35 from adobe-research/master

merge bugfix from master