added code to ensure functions returning structs also report number of parameters in getAll()