[BUGFIX] Fixes rwd-object-halign edge case behaviour

* Fixes bug when halign object only has 1 children and it fixes another edge case which I can't really describe
* Adds qunit tests