Propagate Returned type info to avoid "Object" returned
types
-------------------------------------------------------------
Key: DROOLS-5478
URL:
https://issues.redhat.com/browse/DROOLS-5478
Project: Drools
Issue Type: Sub-task
Reporter: Gabriele Cardosi
Assignee: Gabriele Cardosi
Priority: Major
Labels: TrustyAI
FieldRef and Apply functions does not define directly the returned type.
Propagating the expected returned type will allow to avoid generic "Object"
return and replace it with specific one