Edit: It appears to work as expected in Legion beta but not 6.2.4.
I agree you should but, explicitly setting "*type1", "*type2" to nil or "assist" I still get left/target, right/popup.
I was under the impression they actually had to be explicitly set before the buttons did anything but I see:
Code:
function SecureUnitButton_OnLoad(self, unit, menufunc)
self:SetAttribute("*type1", "target");
self:SetAttribute("*type2", "menu");
self:SetAttribute("unit", unit);
self.menu = menufunc;
end