Allow object array in unassign function