Did the GAL lookup in the contacts and phone apps also work after you removed and added the exchange account? Or did that just fix it for the Gmail app?
Can you please tell which apps you deactivated battery optimization for in order to get the global address book from exchange server to work on contacts and phone apps? Any additional apps other then the obvious ones (phones and contacts)?