type checking LazyST