Adjusted HHVM behavior in Serializer.