Fix bug with unsigned 'char' type (arm) in option parsing (fixes github#6)
Improve option error handling