Moved the unit and number checks inside the _toPixels method.
Added some getter methods.
convertTo now returns a Dimension object.
The constructor, add and subtract methods accept plain numbers and treat them as pixels.
Added a divide method that return a new Dimension object.
Accept negative numbers.
Fixed the _isNumber method to accept 0.
Added proper tests.