[FIX] qweb2.js: fix erratic object type detection in foreach (Fixes #15655)
[FIX] qweb2.js: fix erratic object type detection in foreach (Fixes #15655)

Could not add a test as the qweb js testsuite is broken and it's xml
test files have been modified in order to test qweb.py specific cases.

ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo,ygol/odoo