Fix genapi to support DataType

PR #414 (commit a5ef6a1) changed column type from string to Datatype
Merge pull request #428 from vmauge/fix_genapi

Fix genapi to support DataType