Increase frame pointer in function call.

When call is found int batch, see if it is in function scope. If so then increase frame pointer by 1.
Also fix a bug, now parameters are considered as local variables.