added stripping of function handles to export to avoid weird matlab crashes