D6-2: add support and test cases for declarations after statements