Simplify list_rev and list_next macros