Detect and fix ambiguous partial template specialisation
We have encountered several cases where ambiguous template specialization has caused unpredictable compilation and several bugs that were difficult to track down. Examples:
We should review all cases where the CTA code uses partial template specialization, and ensure that template instantiation is resolved in an unambiguous way.
This mostly applies to the objectstore code.
Templates are also used in the Frontend (admin interface) but this is less critical.