allow to use function as colWidths

Documentation suggests that a function can be used for the colWidth option. Unfortunately this seems not to be the case. This patch works for us.