[WIP] Adding assert for type and tag

Implements `assertWrappedElement` to check for correct wrapped element in typified elements.

Closes #53 
Easiest way would be to see what tests are failing and identify common cause (probably new code, that was added) and then fix it.