Execute custom shapes closure
Merge pull request #297 from pshevtsov/custom-shapes

Execute custom shapes closure. Makes tests/custom-circles.html work.