dubious need for defensive programming, hm...
 optimize assign_internal; start working on named scopes
 one less segfault in ligatures.tex; defensive NULL and refcount checks