product template - bug fix and enhancement

The grouping select list now only shows if grp_type is set.
Had broken the 'selected' code on this in a change earlier today.
version to 201403.b