PHP 5.3 compatibility

- Primarily converting `[]` to `array()`, as well as removing array
  dereferencing code.
Merge branch 'hotfix/php-5.3'

PHP 5.3 compatibility