Fix VarLen getBuffers template and retain