Use same logic in compiler and interpreter for defined?(Colon2).

Fixes #814.