Check Side for correct parameters and children.

Fixes #476.