perf(library/unifier): improve 'assign' method, keep old version

Signed-off-by: Leonardo de Moura <leonardo@microsoft.com>