Fixes Issue 8948 - Make error message more readable when assigning func/dg expression to a func/dg type