Code cleanup in generator script
Functions which returns const pointer sohuld be now supported as well