Add preliminary support for the new archetype keyword.  The use of archetype
is untested, but all current regression tests pass.