ref: initial refactor towards cifti datatypes