Array deserialization bug fixed, BSON test added