Core: Make element() handle ignored elements properly.

Allows ignored elements to be validated, removing any errors if necessary.

Closes gh-721
Core: Whitespace cleanup