Heavy-ion acceleration and self-generated waves in coronal shocks