fix Issue 11125 - UFCS instantiation of template causes template constraint to be skipped

Additionally improve lambda formatting in error messages