[java/cs] Types that have their haxe type changed by how type parameters are handled now are properly cast;
- namespaces are also escaped now
- more robust type parameter detection for anonymous functions
- toString calls redirect to C#'s ToString()


git-svn-id: http://haxe.googlecode.com/svn/trunk@6570 f16182fa-f095-11de-8f43-4547254af6c6
[java] close file descriptors on flush


git-svn-id: http://haxe.googlecode.com/svn/trunk@6571 f16182fa-f095-11de-8f43-4547254af6c6