Fix invalid casts from String to PrimitiveBaseShape or TaskInventoryDictionary in SyncInfoPrim:CompareHashedValue_UpdateByLocal