Completed archetype implementation.

Reviewed in https://codereview.appspot.com/132540043/