Added cache annotation for facts-for-rules.
Removing explicit cache update.
Simplified code and removed some more explicit caching.
Fixed warning.
Merge pull request #318 from 28msec/ImplicitlyCachingRules

Added cache annotation for facts-for-rules.