JSON-RPC: Fixed validation of optional method arguments. Added time logging of method call.