Fixed reading of layer's "mask_data" and "global_mask_info" fields