[DROOLS-64] Traits do not comply with type inheritance on "modify"
(cherry picked from commit 4840097763733a7697f6c112b943649a6c4c3a84)