Fixes #24 (and adobe-photoshop/generator#38)