Adding PHP 5.3 compat to compound keys and fixing broken tests