Add keyword argument support to activation checkpointing (#8182)