Slightly more strict type for Function.curry.

This one really could use some type inference
Export a function to get the box for a fd from the backend.

Used to simplify handling the backend via API:s that only know about
FD:s (no need to keep a separate table of fd<->fd_box)