Add basic when.map benchmark. Switch to function declaration