Use serializer to serialize objects
Merge from wampv1