Replace  http_additional_array with http_cfg_{pre,ap}pend 

These are hashes and is the same way nginx::resource::location handles additional config.