[WIP] elwise

Refactoring of elwise so it uses the functor_arrfunc machinery.