Changed way of doing Function's lookup.
Added IN clause.
Transformed IN and AND on classes

This makes it better to calculate equivalences (when we're going to do
it) and it makes a better Oracle implementation of IN limit.
Merge branch 'change-customization-of-code'