Factories for scripting functions now work again.