Fix function calls from frontend w/o dict and array. Add test cases for fn calls.