Fix bug serializing values

```strtolower``` is called on ```$k``` before it is checked to be in ```self::$mSerializedFields```(which is in upper case) causing it to always return false