Add Convenience Methods For Orientations

adds methods isVertical() and isHorizontal() for linear layouts and grid
layouts

patch 2: removes use of 'this'