Refactor eval dispatch to use multi methods and atoms for refs.