Have get networks function return list instead of string as types are handled by RPC.