Allow doc type to be redefined from attrinbutes on new object initialization.