Mark function options without arguments as bool

Fixes #30