Bugfix for infinite values in CMEST target function
int -> size_t where appropriate