matcher.py: add support for $var=func(...) form in a spec.