Replaces [] with array() for compatibility with php5.3