fix not triggered eviction when policy is "used heap size" or "used heap percentage"
fix incompatible types problem
Merge pull request #3365 from ahmetmircik/fix/3.2.6/triggerEvictionForUsedHeap

Fixes #3321 : Trigger eviction process for heap policies