require Single Command
inline fun <T : CommandData> Collection<CommandWithParties<CommandData>>.requireSingleCommand(): Nothing
fun <C : CommandData> Collection<CommandWithParties<CommandData>>.requireSingleCommand(klass: Class<C>): Nothing
Ensures that a transaction has only one command that is of the given type, otherwise throws an exception.