adds new doctype primitive, bumps template spec version -> 2