PHP 5.3 compatibility

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

PHP 5.3 compatibility