Make sure that nils are always escaped as NULL
Enforce composite primary key constraint on multi-link tables
Added proper cleanup of updated multi-related records during update; added lots of tests for multi-relation records handling