Adding assert for type and tag

Implements `assertWrappedElement` to check for correct wrapped element in typified elements.

Closes #53 
Can you please do `Optimize Imports` on this file. That would sort `use` statements alphabetically.