add deprecation and unchecked scalacOptions
generalize List to Seq in document tree model