Added an extra Ids template argument to Serializer that can be used for object ids