Aspects of symmetry in type IIB and heterotic backgrounds