Compute on scalar expressions

closes #474