Fix context use with list and regex.

Usage of the context macro with a list as path and a regexp for validation now matches correctly.