huge enhancements for Delphi and SmartMobileStudio client code generation
- see feature requests [09ae8513eb], [168eb753e5] and [d7e5521da5]