folly/ApplyTuple.h: fix const-correctness & other issues, simplify