changed Generator to T3D_Generator to prevent problems with newer php versions
Merge pull request #580 from tdev/php_generator_fixes

fixes problems for newer php version