raco: use types.X_TYPE constants rather than magic strings