Refactoring of the ControlParameter smell detector

Refactoring of the ControlParamater smell class to fix issues related to
smells and other non-smell issues.

For issue #231.