Buffer: some constness-fixes