Fixing bugs when PHP code is injected into array properties