EZP-20419 Fix unit- & integration-test failures on PHP 5.3.3 

This PR fixes issue EZP-20419:

Fix unit- & integration-test failures on PHP 5.3.3

## TODO

- [x] fix FieldType integration tests when running with stubs
- [x] fix FieldType integration tests when running with Legacy storage
- [x] fix Legacy storage tests