Improve mapping of custom column type.