Assign and List directive fixes and tests

I mean Java 7 (sorry for the typo) and here is example http://docs.oracle.com/javase/7/docs/technotes/guides/language/try-with-resources.html. If you already increased version, you don't need to do that again, it is required to do once between stable releases.