Forbid interfaces and enums as module targets.

Refs #127.