Parse: Reuse simple_expr rules in patterns.
Type test: Add tests for upcoming smartdict class.
Type: Replace namedtuples with smartdicts.