Fix mark bug. Adds check is a pointer a pointer in the heap, then mark else stop marking