Fixing up pointer detection of madz wrapper.