Two bug fixes for graduated renderer

@NathanW2 

This fixes two issues:

1) SIP ownership issue in QgsRendererRangeV2 identified while building python tests for renderer

2) Disconnect/connect issues identified by Giovanni in issue #11329.  (This is also causing a memory leak).