added basic support for scalar constraint syntactic sugar