support for writing functions and function types in fluffy export