replace FAPPLY with fapply in the compiler implementation

The latter takes a default value and is protected with a conditional to
make the translator's side-conditions trivial to discharge.