Restore compatibility with PHP 5.6.1 by using explicit array index.

Fixes #491