general get/set of array field length
remove unused
oops