move all the $__Map and $__WeakMap functions to a native module