Add mbp_free_array() for C wrapper