SQL select: fixed optimizer to avoid calling index.getSize() but rather index.getKeySize()
Supported picking of value from current record as function arguments