Add support for constant

(issue #29)