Improvements to support reflection on commands/stacks