Fixes issue with JSFunctor-annotated classes