Expose commands as array, instead of function

For appropriate classes, `#commands` is now an array, instead of a function that returns the same array.