Fix bug in JSO that led to improper generation of functor wrappers