Changed CompletionEngine to consider methods from a variable's declared
class more relevant than methods from superclasses.

Signed-off-by: Timo Kinnunen <timo.kinnunen@gmail.com>