The root of the issue was in implementation of equals() and hashCode() of FunctionInvocationWrapper Resolves #578