support createBuffer from normal array (for IE9)