php version requirement
added toArray and toJson
tests for toArray, toJson
improved test for fill