Fix scalar subtraction and add a test. Fixes #4.