Replaces [] by array() to be PHP < 5.4 compliant.