Do not double-count R_alloc memory allocations

Because R_alloc calls allocVector which does its own memory allocation
accounting, memory returned by R_alloc was previously counted
twice. This patch ensures it is only counted once by adding a
parameter to allocVector for disabling accounting and a wrapper
function that is compatible with the old signature.