Add assertion for the new behavior expected in generalized name_to_number()