lib: fix implicit seqof encoding

Following schema encoding is broken:

[0] IMPLICIT SEQOF Attribute

Implicit tag is prepended to wrapping SEQ and to every element
inside it.

Implicit state should be reseted for SEQOF children