Revised EdmSerializer to support serialization of complex types.