Properly encode IMPLICIT tag

Add tests for IMPLICIT and EXPLICIT tags with submodel and fix broken code.
So, if use is present `explicit` encoding won't apply?