parametrize affine expression class. closes #37