Support strings in FlaggableElement#setFlags

Also created test suite as it was missing.

Change-Id: If41f0f1502b363f5ac9db1418c00957c7cf6eb04
ConfirmationDialog: Clean up setup() documentation

Change-Id: I30efc53083b16588fc83ace0db295f4c533b71c3