bug 847344 followup - explicitly cast the AutoSwap type to avoid ambiguity r=roc