Fixed bizarre php bug(?) where not all keywords were being copied into ...

...the results array. See similar problem here: http://stackoverflow.com/questions/775463/ignorance-or-bug-on-phps-foreach-construct

It would appear that having defined $value as being a reference variable above, using it again in the foreach loop was a bad plan - causing the original array $original to actually be modified during the foreach loop.

I changed the name of the variable. It solved the problem.