Adding assert for type and tag

Implements `assertWrappedElement` to check for correct wrapped element in typified elements.

Closes #53 
This can be written in 1 line and still won't be longer than allowed 120 symbol line limit.