Implemented deserialization. Fixed bugs related to typed array constructors.