Gloucestershire's Hamish Marshall hit his fourth century of the season as the visitors made 358 on day one at at Northamptonshire.