Added helper accessors Nan(S|G)etPointerSafe<T> instead of macros and made use of these instead.