The usual solution is the one you have abandoned, which is generally summarized as "prefer containmentcomposition over inheritance".
Create a simple class, which has a container to hold the special values. That container could be a dictionary/map, which is effectively a collection of name+value pairs. If you use the right container, querying it can be reasonably fast.