Add Applicative instance for STM