Create class declaration action now uses the naming service to guess
the class type.
Create class declaration takes now constraints into account.
Cleaned up code.