throws error when command not constructable

i.e. if the object passed to `Context#mapCommand` is not a `function` an error is thrown.