optimized reference-related WQL

now follows join pattern (instead of IN (<subselect>) )
It's a little inconsistent that we have a RefSpec class but not an ActionSpec class.  I'd probably be in favor of merging this into card_spec.  I'd *definitely* be in favor of getting rid of the word "spec" here!