Split getrawtransaction to two methods with different returns

Also fixed getrawmempool return type errors