Resolving constants when used as variable values.

Signed-off-by: Yorick Peterse <yorickpeterse@gmail.com>