Add tests for listreceivebyaddress.

Fix bug with minconf type caught by test (thanks oga).