Allow denominator and numerator to be multiplied by -1

Reviewers: eater

Reviewed By: eater

Differential Revision: http://phabricator.khanacademy.org/D11698