Enforce strong type checking for 'function'