Updated creation of byte buffer views according to latest changes
Renamed context2d to context2D