Test whether the schema is a constant type.