For generatenewaddress specify currency code OR id

API documentation is clear that code OR id should
be used, it does not have to be specified both.

Therefore, this patch would automatically detect
if ID or code is specified and call with relevant
parameter.