Fixed bug on size() against multi iterators
SQL: removed optimization in case of function call because no params no means static call
SQL: fixed bug on execution of functions inside other predicates