Add Unitwise.valid? for checking expressions.