cleanup getArrayValues
cleanup getArrayValues

use kind instead of entriesVal.Kind() and return nil, error

dharmit/docker-gen,baptistedonaux/docker-gen,viranch/docker-gen,atyenoria/docker-gen,jwilder/docker-gen,rashpile/docker-gen,wujingke/docker-gen,hlta/docker-gen,cuttlesoft/docker-gen,cherrydocker/docker-gen,dataferret/docker-gen,asdine/docker-gen,Boran/docker-gen,remh/docker-gen,deepglint/docker-gen,niekoost/docker-gen,cybercode/docker-gen,appropriate/docker-gen,deepglint/docker-gen