Buffer: better grow method + appending bug fix

Follow-ups of #90 and #91