fix support for opt=true (nil are now properly handled)