Support Archetype Extensibility

Based on patches by Benjamin Kampmann