Added dirty tracking from ActiveModel to tensor