Adding assert for type and tag

Implements `assertWrappedElement` to check for correct wrapped element in typified elements.

Closes #53 
I don't think we'll be applying more validation for wrapped elements any time soon, so we just rename this constant to `TYPE_INCORRECT_WRAPPED_ELEMENT`.