Fixing issues in the alignment select in Media Edit dialog

Fixing the behavior of alignment select and checkbox in the edit
dialog. Adding a check on all UI events to make sure they update
the model only if the model value is different than the UI value.

Also adding the ability to check the default direction of a
specific node type, to predict default alignment values.

Bug: 65916
Bug: 66291
Change-Id: I82f624fa788383dec0a12afb473aef01593e670e
(cherry picked from commit 8bca6add25b4e37f05e3e5768a762a2d69d6f7c4)