Emergent chemical behavior in variable-volume protocells