Fixed some issues with single elements.

* Fixes single element in list error.
* Fixes element not being added to options if list is empty.
Added missing semicolon.
Merge pull request #74 from dean/empty-categories-fix

Fixed issues with single elements in <category>/update