Fixed dimensions of arrays returned by rand_initialize_weights.