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

Fixes #18.