For anyone else affected by this, I'd like to add that downgrading nvidia-driver to version 375.82-4~bpo9+1 (from stretch-backports) made applications running through optirun/primusrun function normally again for me. -- Mel