Introduce common base classes for Expressions and Statements

This simplifies handler registration, as it can be performed at the base
class.