Allow constant struct fields and tuple indexing
Add tests for issue 19244