ref-filter: move `struct atom_value` to ref-filter.c