Fix robotanalyze/getct to handle REF, MX