Add assertion for buffer elements alignment