APF-1454: Fixed AMP code generation to handle basic archetypes with parent.