Teach echoes to understand constants.

Some more tweaking and refactoring is probably required.