Fixes #3760: Gii model generator now imports classes when necessary instead of using fully qualified class names