ConsoleAPI::RegisterCommand: make it possible to connect commands to const functions too.