Fix genapi to support DataType

PR #414 (commit a5ef6a1) changed column type from string to Datatype