Fix NestoriaQuery.to_hash()