Implemented additional const-related and array-related fixes in the C API.