Write/update extends-and-memoize.js, update spec.