Simplify implementation of support for ArrayBuffer