Added support for calling rules stored as a function's value

Change-Id: I490a558f0735a12bd48c1143f20c949906746323
Signed-off-by: mstegmaier <michael-1.stegmaier@uni-ulm.de>