[WIP] Adding assert for type and tag

Implements `assertWrappedElement` to check for correct wrapped element in typified elements.

Closes #53 
This is a good idea, in the beginning I feared that it could be a bit too complex but it looks nice :smile: