Properly set mechanism to CURVE when setting a curve option
Merge pull request #581 from hintjens/master

Problem: code isn't setting mechanism to CURVE properly