Gii codestyle fixes #2

Improve Gii model generator to:
1. Not use unnecessary fully qualified class name;
2. Not use `use` mechanism when extended class in the same namespace.
Code should be refactored because the same (complex) condition is used in two places.