record.style can be a string or an object (for cell formatting)

see issue #426