Merge pull request #4003 from 9rnsr/2.066

Cherry-picking pull request #3961 for 2.066.1
Merge pull request #3982 from 9rnsr/fix13382

Issue 13382 - [e2ir] compare string to int - leads to ICE in e2ir.c 1902
Merge pull request #4007 from 9rnsr/fix13497

[REG2.065] Issue 13497 - [ICE e2ir 1911] Array op compiler error
Merge pull request #4005 from 9rnsr/fix13502

[REG2.065] Issue 13502 - Stray '(' warning not emitted for documentation of enum templates