Fix bug with `self` not being defined.
Move `data-schematype` attribute to container instead of input.