Rewrote defalias and memoize to use eval-when.