Add handling of constants in schemas