setType -> setOfType, resolves bug 556