Add support of replacing JSON references being inside arrays