Action framework tweaks

Enhancements to #991.

@cjcolvar?