Fix #761: Ambiguous typename when constructing derived component