Partial support for constants.

This needs value extraction.