[DROOLS-251] fix annotation resolution when it has the same name of a declared type