added return value to pergeObject
Merge remote-tracking branch 'upstream/1.x' into lyr-master