Adding assert for type and tag

Implements `assertWrappedElement` to check for correct wrapped element in typified elements.

Closes #53 
The `(string)` part can be removed here because `%s` of `sprintf` will typecast itself when needed.