improved error message when expression fails to resolve
moved type constants to a separate module; added TypeConsts module to ModelDslApi