Issue #2265977 by olli: fixed php backend serialization.
Issue #2266501 by Gábor Hojtsy, vijaycs85, YesCT: Array level schema errors are not reported, fix wrong schemas identified.