Implement function pointers as a view.

This prepares the way for removing libffi from the dynamic semantics.