Add validator for deprecated elements (issue #153).