Switched to the new path type, that also supports closed paths.
Removed the boolean field for closing a fill or stroke from the backend API. It now provided the original functions again.