richards model: replace a few enums by static const ints to get rid of a few gcc warnings