Fixes to various elements because they continue to fail validation.

Use of textType and codeType defaults was conflicting with the
more explicit documentation of attributes. Found when tests were
run.