modify selectExtensions.writeValue to consider ID of value object