[commit: base] master: Generalize the type of Foreign.Marshal.Utils.maybeNew; fixes trac #5044 (b27b90f)