Fix ANF conversion involving quote
Fix if in function argument, fix tests