o.c.scan: Extract StringOrDouble handling