allow closure creation on extern static inline methods (closes #2813)

I think I want to wait with this until after 3.1.3.