Add Convenience Methods For Orientations

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