Merged fixed allocation for paths from nanovg

Encountered something similar to my previous PR, except with allocPaths. Merged the functionality that nanovg uses and it seems to work now.