Added support for constructing from ArrayBuffer and added test that verifies support