Make poly_{fun,arrow}_of_type_decl construct functions in correct order.

Fixes #18.
Add forgotten Ppx_deriving.fold_type_decl.