Fix debug option type checking