Move weight type deduction to GDS
Equality checks for batches and updates to allow testing of write/read