JsonConfigSource: arrayUnshiftRef(): visibility and naming

Accoriding to [the coding standards](https://github.com/composer/composer/pull/2993) this function lacks:

* visibility
* properNaming

Methods are `public` by default, so setting it `private` could be a BC break, but it probably won't ;-)