It appears a basic bug sneaked into version 4 or maybe there is something I don't do right.
Consider this fiddle: https://jsfiddle.net/g7tqghp5/2/
A basic case drawing a rectangle, clearing it and draw the rectangle again in a different color. It doesn't work in version 4 RC3 but it works in all older versions.