fix map of primitive; add thrift to pig compat