Added sizeof_array macro, amended util.c/pdb_get_error() to use it