Registering non-string namespace should throw InvalidArgumentException.