Adds basic constant support.
Merge pull request #864 from sorlok/constants

Adds basic constant support.