Fixed bug #79548 When duplicating user functions with static variables, make sure that we init a new map ptr slot for the static variables.