filter out primitive type for get/put field