Make zip und unzip quite
delphi: Fix return type generation for single strings
php: Fix return type generation for single strings
java: Fix return type generation for single strings in documentation

Also refactor common functions.