[widget] Remove automatic casting.
[widget] Restrict exceptions caught by #test.
Introduce DynamicValue for delayed matching.