Fixes #2982

Added a return on the addPlotBand and addPlotLine methods, to actually
return the inserted object.