[BUG #6968] make the first statement's hints a common hint for all statements

- after bug reopened by saaj
- special casing on common <file><statements> trees