SERVER-16617: respect deep during update validation
also includes some performance optimizations