Handle named function expressions separately from anonymous ones