Rewrite defenum to use hash tables. If famiclom needs something fancier, it can implement it.
Inline wrapping functions and stack push/pop.