Thomas re-signs with Gloucester